package toolsUseCourse.javaFoundation.datatypeoperations.MapOperation;

import java.util.HashMap;

public class MapOperation {
    public static void useMapAlonely() {
        HashMap hashMap = new HashMap();
        hashMap.put("key1", "value1");
        hashMap.put("key2", "value2");
        System.out.println("hashMap: " + hashMap.size());
        hashMap.clear();
        System.out.println("hashMap: " + hashMap.size());


//        hashMap:2
//        hashMap:0


    }

}
